import { basicInfoRT, loginRT, slideshowT, loginDT } from '@/types/home'
import { http } from '@/utils/http'
/**
 * @sign 轮播图列表
 * @method GET
 * @url /on-school/home/advertising-list
 */
export const GetSwiperList_API = () => {
    return http<slideshowT[]>({
        url: `/on-school/home/advertising-list`,
        method: 'GET',
    })
}
/**
 * @sign 给学生-发送验证码-新的
 * @method POST
 * @url /auth/stu/send-code
 */
export const getCodebyPost_API = (data: any) => {
    return http<boolean>({
        url: `/auth/stu/send-code`,
        method: 'POST',
        data,
    })
}
/**
 * @sign 登录
 * @method POST
 * @url /auth/stu/login
 */
export const login_API = (data: loginDT) => {
    return http<loginRT>({
        url: `/auth/stu/login`,
        method: 'POST',
        data,
    })
}

/**
 * @sign 个人基础信息
 * @method GET
 * @url /on-school/my/basic-info
 */
export const basicInfo_API = () => {
    return http<basicInfoRT>({
        url: `/on-school/my/basic-info`,
        method: 'GET',
    })
}
